[DESCRIPTION]Displays a message box with Yes/No buttons.[/DESCRIPTION]
[HEAD CODE][/HEAD CODE]
[BODY CODE]<SCRIPT language="JavaScript">
<!--
{
var where_to= confirm("Are you sure?");
if (where_to== true)
{
window.location="http://www.bashsoftware.tk";
}
else
{
// do nothing
}
}
//-->
</SCRIPT>[/BODY CODE]
[NOTES]Just place the code in the Body of your page and it will show when the page is loaded. If you want to show a message box when the user clicks a link or a button, make the script a named function then use the OnClick event as shown below: